Ext.namespace('VAS');

VAS.CategoryMenuWindow = function($config) {
	var _this = this;
    
	var menuUrl = $config.menuUrl || 'http/menu_temp.json';
	
	
	var panel = new Ext.Panel({
    	title:'栏目管理',
	    frame:true,
	    width:'100%',
	   	height:RIGHT_WINDOW_HEIGHT - 35,
	    layout:'fit',
	    items : [
				new Ext.tree.TreePanel({
					id: "leftMenu",
			        useArrows: true,
			        autoScroll: true,
			        animate: true,
			        enableDD: true,
			        containerScroll: true,
			        border: false,
			        dataUrl: menuUrl,
			        root: {
			        	id:'root',
			            nodeType: 'async',
			       		expanded:true,
				        text:'栏目管理',
			            draggable: false
			        }
			    })  
	      ]
	   
	});
	
	
	var thisConfig = {
		closable : false,
		autoScroll : true,
		frame:false,
		height:RIGHT_WINDOW_HEIGHT,
		items : panel
	};
	var _config = $config || {};
	Ext.apply(_this, Ext.apply(thisConfig, _config));
	VAS.CategoryMenuWindow.superclass.constructor.call(_this);

};
Ext.extend(VAS.CategoryMenuWindow,VAS.BasicWindow,{

});


Ext.reg('categorymenu-win',VAS.CategoryMenuWindow);

